import Mock from 'mockjs'

//导入首页轮播图模拟数据
import bannerList from './bannerList.json'
//导入首页楼层模拟数据
import floorList from './floorList.json'
//导入收货地址模拟数据
import address from "./address.json"

//模拟获取轮播图数据
Mock.mock('/sph/banner',{
    code:200,
    message:'成功',
    data:bannerList,
    ok:true
})

//模拟获取楼层数据
Mock.mock('/sph/floor',{
    code:200,
    message:'成功',
    data:floorList,
    ok:true
})

//模拟获取楼层数据
Mock.mock("/sph/address",{
    code:200,
    message:'成功',
    ok:true,
    data:address
});